package Ex241210;

public class SalariedEmployee extends EmployeeVirtual{
    public SalariedEmployee(String name, int salary){
        super(name, salary);
    }
    int calculateSalary(){
        return salary;
    }
    void cout_salary(){
        System.out.print("月薪工" + name + "本月工资为");
        System.out.print(calculateSalary());
        System.out.println("元。");
    }
}
